#
# Copyright (C) [2024] Xingyun Integrated Circuit, Inc.
#
# GreenCode was a private technology asset of Xingyun Integrated Circuit， Inc （Confidential）
# Author: Shawn.Tan
# Date: 2025.10.28
#
# History: Initial Version 2025.10.28
#
#
control_items = [
    {"fname": "assembly_helper_force.py"},
    {
        "fname": "exception_counts_force.py",
        "generator": {"--options": '"handlers_set=Fast"'},
    },
    {"fname": "exception_counts_force.py"},
    {"fname": "stack_force.py"},
    {
        "fname": "instruction_misaligned_exception_force.py",
        "options": {"max-instr": 5000},
        "generator": {
            "--max-instr": 5000,
            "--options": '"PrivilegeLevel=3,DelegateExceptions=0"',
        },
    },
    {
        "fname": "trap_vm_force.py",
        "options": {"max-instr": 5000},
        "generator": {"--max-instr": 5000, "--options": '"PrivilegeLevel=1"'},
    },
    {
        "fname": "ecall_ebreak_force.py",
        "options": {"max-instr": 5000},
        "generator": {
            "--max-instr": 5000,
            "--options": '"PrivilegeLevel=3,DelegateExceptions=1,' 'PagingDisabled=1"',
        },
    },
    {
        "fname": "ecall_ebreak_force.py",
        "options": {"max-instr": 5000},
        "generator": {
            "--max-instr": 5000,
            "--options": '"PrivilegeLevel=1,DelegateExceptions=1,' 'PagingDisabled=1"',
        },
    },
    {
        "fname": "ecall_ebreak_force.py",
        "options": {"max-instr": 5000},
        "generator": {
            "--max-instr": 5000,
            "--options": '"PrivilegeLevel=0,DelegateExceptions=1,' 'PagingDisabled=1"',
        },
    },
    {
        "fname": "ecall_ebreak_force.py",
        "options": {"max-instr": 5000},
        "generator": {
            "--max-instr": 5000,
            "--options": '"PrivilegeLevel=3,RedirectTraps=1,PagingDisabled=1"',
        },
    },
    {
        "fname": "ecall_ebreak_force.py",
        "options": {"max-instr": 5000},
        "generator": {
            "--max-instr": 5000,
            "--options": '"PrivilegeLevel=1,RedirectTraps=1,PagingDisabled=1"',
        },
    },
    {
        "fname": "ecall_ebreak_force.py",
        "options": {"max-instr": 5000},
        "generator": {
            "--max-instr": 5000,
            "--options": '"PrivilegeLevel=0,RedirectTraps=1,PagingDisabled=1"',
        },
    },
    {
        "fname": "access_csrs_force.py",
        "options": {"max-instr": 5000},
        "generator": {"--max-instr": 5000, "--options": '"PrivilegeLevel=3"'},
    },
    {
        "fname": "access_csrs_force.py",
        "options": {"max-instr": 5000},
        "generator": {"--max-instr": 5000, "--options": '"PrivilegeLevel=1"'},
    },
    {
        "fname": "access_csrs_force.py",
        "options": {"max-instr": 5000},
        "generator": {"--max-instr": 5000, "--options": '"PrivilegeLevel=0"'},
    },
]
